<script type="text/javascript" src="/styles/website/js/javascript.lib.js"></script>
<script type="text/javascript">
function btnRegistry_onclick(){
	if(test_empty($('#username').val())){
		alert(mustInput_Uid);document.frmMember.txtUser.focus();return false;
	}
	if(test_empty($('#email').val())){
		alert(mustInput_Email);document.frmMember.txtEmail.focus();return false;
	}
	if(!checkEmail($('#email').val())){
		alert(invalid_Email);document.frmMember.txtEmail.focus();return false;
	}
	if(!test_confirm_pass($('#email').val(),$('#emailre').val())){
		alert(identicalEmail);document.frmMember.txtReEmail.focus();return false;
	}
	if(test_empty($('#code').val())){
		alert(mustInput_Robust);document.frmMember.txtCode.focus();return false;
	}
	return true;
}
</script>
<div class="wrapper">
	<h3 class="title_wrapper">{$title}</h3>
    <div style="padding:10px;">
        <form method="post" action="{Url::current()}" name="frmMember" enctype="multipart/form-data">
            <div class="rows_register" style="padding-bottom:0;font-weight:bold;color:#000;">
                <label style="width:160px;">&nbsp;</label>
                ( <font color="#FF0000" style="font-weight:normal;">*</font> ) là thông tin bắt buộc.
                <div class="clear"></div>
            </div><!--rows_register-->
            <div class="rows_register" style="padding-bottom:0;font-weight:bold;color:#000;padding:10px 0;border:none;color:#f00;">
                {if isset($report)}{$report}{/if}
            </div><!--rows_register-->
            <div class="rows_register">
                <label style="width:160px;">Tên đăng nhập :</label>
                <input type="text" name="txtUser" id="username" class="txtRegiter" /><span>*</span>
                <div class="clear"></div>
                <label style="width:160px;">Email :</label>
                <input type="text" name="txtEmail" id="email" class="txtRegiter" /><span>*</span>
                <div class="clear"></div>
                <label style="width:160px;">Nhập lại email :</label>
                <input type="text" name="txtReEmail" id="emailre" class="txtRegiter" /><span>*</span><br><br>
                <div class="clear"></div>
            </div><!--rows_register-->
            <div class="rows_register">
                <p style="margin-top:10px;padding-left:160px;">{$captcha}</p>
                <label style="width:160px;">Mã xác nhận :</label>
                <input type="text" name="txtCode" id="code" class="txtRegiter" style="width:150px;" /><span>*</span>                    
                <div class="clear"></div>
            </div><!--rows_register-->
            <div class="rows_register" style="border:none;">
                <input type="hidden" name="action" value="forgot" />
                <input type="hidden" name="token" value="{Security::setToken('token_form')}" />
                <p style="padding-left:160px;"><input onclick="return btnRegistry_onclick();" type="submit" name="btnSubmit" value="Gửi" class="btnRegister"><input type="reset" value="Nhập lại" class="btnRegister"></p>
                <div class="clear"></div>
            </div><!--rows_register-->
        </form>
     </div>
</div><!--wrapper-->

